const path = require("path");
const execa = require("execa");
module.exports = (name) => {
  if (name === "nginx") {
    let file = path.resolve(__dirname, "../bat/nginx.bat");
    execa(`start ${file}`);
  } else if (name === "redis") {
    let file = path.resolve(__dirname, "../bat/redis.bat");
    execa(`start ${file}`);
  }
};
